﻿using FluentNHibernate.Mapping;
using Salary.Domain;

namespace Salary.NHibernate.Mappings
{
    public class PositionMap : ClassMap<Position>
    {
        public PositionMap()
        {
            Table("Positions");
            Id(x => x.Id);
            Map(x => x.Category).CustomType<int>();
            Map(x => x.Name);
            Map(x => x.Percents).CustomSqlType("decimal");
        }
    }
}
